<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>系统管理首页</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <style>
        li{list-style: none;}
        a:visited{color: white}

    </style>
</head>
<body>
<!--顶部、主体-->
<div class="container">
    <div class="row text-center bg-black text-white">
        <div class="col-2">
            <img src="../img/logo.png" alt="" width="50%">
        </div>
        <div class="col-8">致欢迎词</div>
        <div class="col-2">用户</div>
    </div>
    <div class="row" style="min-height: 400px">
        <div class="col-2 bg-black text-white pt-5">
            <li class="m-2">
                <a href="/main">管理首页</a>
            </li>
            <li class="m-2">
                <a href="/goods/goodsList">商品模块</a>
            </li>
            <li class="m-2">
                <a href="/supplier">供应商模块</a>
            </li>
            <li class="m-2"><a href="/user">管理用户模块</a></li>
        </div>
        <div class="col-10 pt-2">
<!--            这里显示商品列表-->
<!--            themlyme模板显示-->
            <p th:text="${data}"></p>
            <table class="table table-bordered">
                <thead>
                  <th>序号</th>
                  <th>商品名</th>
                  <th>价格</th>
                   <th>数量</th>
                  <th>种类</th>
                   <th>供应商</th>
                   <th>管理</th>
                </thead>
                <tbody>
                    <tr th:each="goods:${data}">
                       <td th:text="${goods.getId()}"></td>
                       <td th:text="${goods.getName()()}"></td>
                       <td th:text="${goods.getPrice()}"></td>
                       <td th:text="${goods.getQuantity()}"></td>
                       <td th:text="${goods.getCategory()()}"></td>
                       <td th:text="${goods.getSupplier()}"></td>
                        <td>
                            <a href="/goods/goodsDeleteById">删除</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="footer text-center bg-black text-white">
        @2023-2028，版本所有，违者必究
    </div>
</div>
</body>
</html>